#ifndef PARTITION_DRIVER_H
#define PARTITION_DRIVER_H

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "esp_chip_info.h"
#include "esp_flash.h"
#include "esp_system.h"
#include "esp_partition.h"

#define KEY_DATA_SECTOR_SIZE 0X1000 //4k

void init_partition();
esp_err_t partition_flash_write_quick(size_t src_offset,const void *src, size_t size,const char *label);
esp_err_t partition_flash_read_quick(size_t src_offset,void *dst, size_t size,const char *label);
#endif